// 将屏幕划分为15等分
@no:15;

html{
  font-size: 50px;
}

@media screen and (max-width:1079px){
  html{
    font-size: 750px / @no;
  }
} 
// @media screen and (min-width:750px){
//   html{
//     font-size: 750px / @no;
//   } 
// }
@media screen and (min-width:1080px){
  html{
    font-size: 1080px / @no;
  }
}

@baseFont: 50px;

body{
  min-width: 310px;
  max-width: 1080px; 
  font-family: -apple-system,Helvetica,sans-serif;
  // width: 15rem;
  margin: 0 auto;
}

p,ul{
  margin: 0;
  padding: 0;
}

.top-tips{
  width: 100%;
  height: 45px;
  font-size: 12px;
  line-height: 45px;
  position: absolute;
  top: 0; 
  left: 0;
  background-color: #333;
  text-align: center;
  color: #fff;
  div{
    &:nth-child(1){
      float: left;
      width: 8% ;
      img{
        width: 10px; 
        vertical-align: middle; 
      } 
    }
    &:nth-child(2){
      float: left;
      width: 10%; 
      img{
        width: 30px;  
        vertical-align: middle;
      }
    }
    &:nth-child(3){
      float: left;
      width: 57% ; 
    }
    &:nth-child(4){
      float: left;
      width: 25% ; 
      height: 45px;
      font-size: 15px;
      background-color: #cd2525;
    }
  }
}

.search-box{
  position: fixed;
  top: 45px;
  left: 0;
  width:100%;
  height: 44px;
  z-index: 20;
  .search-btn{
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 44px;
    span{
      display: block;
      width: 20px;
      height: 18px;
      margin: 14px 0 0 15px;
      background: url(../img/s-btn.png) no-repeat 0 0;
      background-size: 20px 18px;
    }
  }
  .search{
    position: relative;
    height: 30px;
    margin:7px 50px;
    border-radius: 15px;
    background-color: #fff;
    span{
      float: left;
      position: relative;
      width: 20px;
      height: 15px;
      margin: 8px 8px 0 15px ;
      background: url(../img/logo2.png) no-repeat;
      background-size: 20px 15px;
      &::after{
        position: absolute;
        right: -8px;
        content: "";
        width: 1px; 
        height: 15px;
        background-color: #ccc;
      }
    }
    i{
      float: left;
      width: 18px;
      height: 15px;
      margin: 8px 0 0 15px;
      background: url(../img/jd-sprites.png) no-repeat -82px 0;
      background-size: 200px 200px;
    }
    input{
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 30px;
      padding: 0 20px 0 78px;
      background-color: transparent;
      border: none;
      font-size: 12px;
      /* border-box: */
    }
  }
  .login{
    position: absolute; 
    top: 0;
    right: 0;
    width: 40px;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    color: #fff;
    text-align: left;
  }
}

.content{
  width: 100%; 
  margin-top: 45px;
  background-color: #f6f6f6; 
  .banner{
    position: relative;
    width: 100%;
    height: 270rem / @baseFont;
    overflow: hidden;
    .banner-bg{
      position: absolute;
      left: -25%;
      width: 150%;
      height: 145rem / @baseFont;
      border-bottom-left-radius: 100%;
      border-bottom-right-radius: 100%;
      background-color: #f00;
      background-image: linear-gradient(0deg,#f1503b,#c82519 50%);
    }
    ul {
      list-style: none;
      position: relative;
      margin: 0;
      li{
        position: absolute;
        left: 0;
        top: 0;
        width: 100%; 
        height: 201rem / @baseFont;
        padding: 64px 3.33% 0;
        box-sizing: border-box;
        a {
          display: block;
          width: 100%;
          height: 100%;
          img{
            display: block;
            width: 100%;
            height: 201rem / @baseFont;
          } 
        }
      }
    }
  }
  .youhui{
    width: 100%;
    overflow: hidden;
    display: flex;
    a{
      flex: 1;
      img{
        display: block;
        width: 100%;
      }
    }
  }
  nav{
    height: 233.28rem / @baseFont;
    .mall-nav{
      display: flex;
      flex-wrap: wrap;
      
      a{
        margin: 0;
        height: 106.24rem / @baseFont;
        width: 20%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        color: #666;
        img{
          display: block;
          width: 57.6rem / @baseFont;
          height: 57.6rem / @baseFont;
          margin: 14.4rem/@baseFont auto 0;
        }
        span{
          font-size: 17.28rem / @baseFont;
          margin-top: 8.64rem / @baseFont;
        }
      }
    }
  }
  .goodList{
    display: flex;
    height: 172.8rem / @baseFont;
    // width: 720rem / @baseFont ;
    margin: 0 20px;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: #fff;
    a{
      flex: 1;
      font-size: 21.6rem / @baseFont;
      text-decoration: none;
      color: #222;
      flex-direction: column;
      display: flex;
      align-items: center; 
      justify-content: center;
      span{
        font-size: 17.28rem / @baseFont;
      }
      p{ 
        display: block;
        font-size: 23.04rem / @baseFont;
        font-weight: 800;
        width: 100%;
        height: 32rem / @baseFont;
        line-height: 32rem / @baseFont;
        text-align: center;
        margin: 0;
      } 
      img{
        display: block;
        width: 86.4rem / @baseFont;
        height: 86.4rem / @baseFont;
        margin-top: 9rem / @baseFont;
      }
    }
  }
}

.miaosha{ 
  // width: 720rem / @baseFont ;
  margin: 0 20px;
  box-sizing: border-box;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 15rem / @baseFont;
  background-color: #fff;
  border-radius: 6px;
  .title{
    font-size: 20.16rem / @baseFont;
    display: flex;
    height: 48.95rem / @baseFont;
    align-items: center;
    padding: 0;
    margin: 0;
    p{ 
     margin-left: 7.2rem / @baseFont;
     margin-right: 14.4rem / @baseFont;
    }
    span{
      &.timeMiaosha{
        display: flex;
        align-items: center;
        padding: 0 7.2rem / @baseFont;
        margin: 0 5.76rem / @baseFont 0 0 ;
        span{
          display: inline-block;
        }
        img{
          width: 29.5rem / @baseFont;
          height: 25.2rem / @baseFont;
        }
      }
      &.time{
        font-size: 17.28rem / @baseFont;
        height: 26rem / @baseFont;
        line-height: 26rem / @baseFont;
        width: 21.6rem / @baseFont;
        background-color: #fa2c19;
        color: #fff;
        border-radius: 5px;
      }
      &.maohao{ 
        font-size: 17.28rem / @baseFont;
        color: #fa2c19;
        font-weight: 700;
      }
    }
    i{
      list-style: none;
      color: #fa2c19;
    }
  }
  .qiangList{
    height: 184.45rem / @baseFont;
    width: 15rem;
    overflow: hidden;
    display: flex;
    margin: 0;
    padding: 0;
    li{
      flex: 1;
      list-style: none;
      a{
        display: inline-block;
        // width: 115.66rem / @baseFont;
        width: 100%;
        height: 184.45rem / @baseFont;
        display: flex;
        text-decoration: none;
        flex-direction: column;
        align-items: center;
        img{
          width: 112.79rem / @baseFont;
          height: 112.79rem / @baseFont;
        }
        p{
          margin: 0;
          padding: 0;
          text-decoration: none;
          color: #666;
          font-size: 18.72rem / @baseFont;
          color: #fa2c19;
          font-size: 700;
          font-family: JDZhengHT-EN-Regular;
          span{
            font-size: 12rem / @baseFont;
          }
          &:nth-child(3){
            text-decoration: line-through;
            color: #999;
          }
        }
      }
    }
  }
}

@media screen and (min-width:750px){
  nav{
    height: 233.28px!important;
    .mall-nav{
      display: flex;
      flex-wrap: wrap;
      a{
        margin: 0;
        height: 106.24px!important;
        width: 20%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        color: #666;
        img{
          display: block;
          width: 57.6px!important;
          height: 57.6px!important;
          margin: 14.4px auto 0 !important;
        }
        span{
          font-size: 17.28px!important;
          margin-top: 8.64px;
        }
      }
    }
  }
  .labelList{
    div{
      width: 125.28px!important;
      height: 172.8px!important;
      background-size: 125.28px 172.8px !important;
      img{
        top: 10px!important;
        left: 20px!important;
        width: 90.71px!important;
        height: 90.71px!important;
      }
      p{   
        margin: 0;
        padding: 0;
        font-size: 14.4px!important;
        &:nth-child(2){
          position: absolute;
          left: 15px!important;
          bottom: 48px!important;
          color: #fff;
          width: 100px!important;
          text-align: center;
          font-size: 14.4px!important;
        }
        &:nth-child(3){
          font-size: 20.16px!important;
          position: absolute;
          left: 15px!important;
          bottom: 13px!important;
          color: #fff;
          width: 100px!important;
          text-align: center;
        }
      }
    }
  }
}

.labelList{
  display: flex;
  margin: 0 10px 0 ;
  box-sizing: border-box;
  border-radius: 10px;
  height: 172.8rem / @baseFont;
  margin-top: 15rem / @baseFont;
  justify-content: space-between;
  // justify-content: space-around;
  div{
    position: relative;
    // flex: 1;
    width: 122.28rem / @baseFont;
    height: 172.8rem / @baseFont;
    background: url('https://m.360buyimg.com/mobilecms/s184x242_jfs/t1/164528/7/27/7126/5fec3ea2E6a8be39c/f8fbdbcc9c1ab9c7.png!q70.jpg.dpg') no-repeat;
    background-size: 100% 100%;
    text-align: center;
    img{
      position: absolute;
      top: 10rem / @baseFont;
      left: 15rem / @baseFont;
      width: 90.71rem / @baseFont;
      height: 90.71rem / @baseFont;
    }
    p{   
      margin: 0;
      padding: 0;
      font-size: 14.4rem / @baseFont;
      &:nth-child(2){
        position: absolute;
        left: 15rem / @baseFont;
        bottom: 48rem / @baseFont;
        color: #fff;
        width: 100rem / @baseFont;
        text-align: center;
        font-size: 14.4rem / @baseFont;
      }
      &:nth-child(3){
        font-size: 20.16rem / @baseFont;
        position: absolute;
        left: 15rem / @baseFont;
        bottom: 13rem / @baseFont;
        color: #fff;
        width: 100rem / @baseFont;
        text-align: center;
      }
    }
  } 
}

.yourLike{
  // margin-top: 20rem / @baseFont;
  margin: 0 20px;
  .headerImg{
    margin-top: 10rem / @baseFont;
    margin-bottom: 8rem / @baseFont;
    display: block;
    height: 50.4rem / @baseFont;
    width: 100%;
    text-align: center;
  }
  ul{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    li{
      width: 48%;
      background-color: #fff;
      box-sizing: border-box;
      border-radius: 10px;
      padding-bottom: 20rem / @baseFont;
      margin-bottom: 20rem / @baseFont;
      &:nth-child(2n){
        margin-left: 2%;
      }
      &:nth-child(2n+1){
        margin-right: 2%;
      }
      a{
        height: 464.88rem / @baseFont;
        text-decoration: none;
        img{
          width: 100%;
          border-radius: 10px;
        }
        p{
          padding: 0 4rem / @baseFont 3rem / @baseFont;
          font-size: 13rem / @baseFont;
          line-height: 20rem / @baseFont;
          color: #1a1a1a;
        }
        span{
          color: #fa2c19;
          display: block;
          padding-left: 4rem / @baseFont;
          height: 25rem / @baseFont;
          font-size: 16rem / @baseFont;
        }
      }
    }
  }
}
footer{
  height: 45rem / @baseFont;
  background-color: #fff;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  ul{
    display: flex;
    justify-content: space-around;
    li{
      list-style: none;
      height: 100%;
      img{
        display: block;
        width: 57.6rem / @baseFont;
        height: 44.3rem / @baseFont;
      }
    }
  }
}
@media screen and (min-width: 750px){
  footer{
    height: 45px;
    ul{
      li{
        img{
          width: 57.6px;
          height: 44.3px;
        }
      }
    }
  }
}

@media screen and (max-width:640px){
  footer{
    height: 83.94rem / @baseFont !important;
    ul{
      li{
        img{
          width: 100.73rem / @baseFont;
          height: 77.47rem / @baseFont;
        }
      }
    }
  }
}